
#ifndef MINI_2440_APPLICATION_H
#define MINI_2440_APPLICATION_H

#include <QPixmap>
#include <QImage>
#include <QProcess>
#include <QObject>

class Mini2440Application : public QObject
{
  Q_OBJECT

public:
    Mini2440Application(QString executableName, QString caption, QString imageName, QStringList args);
    void launch();
    void kill();
    QImage* getImage();
    QString getCaption();

public slots:
    void processStarted();
    void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
    void processError(QProcess::ProcessError err);

signals:
    void demoStarted();
    void demoFinished();

private:
    QString imagePath;
    QString appCaption;
    QString executablePath;
    QStringList arguments;
    QProcess process;
};




#endif


